home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / skates.swf / scripts / frame_197 / PlaceObject2_57_86 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2007-04-20  |  634 b   |  24 lines

  1. onClipEvent(enterFrame){
  2.    if(timeChecked != 1)
  3.    {
  4.       var theTimerObj = new Date();
  5.       timer = theTimerObj - startTime;
  6.       timer = String(timer);
  7.       if(timerSet != 1)
  8.       {
  9.          timerSet = 1;
  10.          startTime = theTimerObj.getTime();
  11.       }
  12.       if(2500 < timer and timer < 5000 and timerSet == 1 and SpeedSet != 1)
  13.       {
  14.          _root.speed = count;
  15.          SpeedSet = 1;
  16.          timeChecked = 1;
  17.          _root.playButtonMC.gotoAndStop(2);
  18.          _root.instrButtonMC.gotoAndStop(2);
  19.          _root.soundOn != 1 ? 0 : _root.SFXbeep.gotoAndPlay(2);
  20.       }
  21.       count++;
  22.    }
  23. }
  24.